<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>
	
	<link rel="stylesheet" type="text/css" href="/css/common.css">
	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript">
		function deleteItem(idx) {
			if (confirm("정말 삭제하시겠습니까?")) {
				location.href = "/product/activitypoint/delete?idx="+idx;
			}
		}
	</script>
</head>
<body>
<!-- Header -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/header.php'; ?>
<!--// Header -->

<!-- Contents -->
<div>
	<h2>활동내역별 지급 포인트 관리 - 리스트</h2>
</div>
<div>
	<form method="post" id="frm" action="/product/activitypoint/update">
		<fieldset>
			<table width="100%" border="1" cellpadding="2" cellspacing="0">
				<tr>
					<td>No</td>
					<td>활동ID</td>
					<td>활동내역</td>
					<td>지급포인트</td>
					<td>등록일</td>
					<td>최종변경일</td>
					<td>삭제</td>
				</tr>
<?	foreach ($activitypoint_list as $items) : ?>
				<tr>
					<td><input type="hidden" name="idx[]" value="<?=$items['idx'];?>" /><?=$items['idx'];?></td>
					<td><input type="text" name="actv_id[]" value="<?=$items['actv_id'];?>" /></td>
					<td><input type="text" name="actv_caption[]" value="<?=$items['actv_caption'];?>" /></td>
					<td><input type="text" name="point[]" value="<?=$items['point'];?>" /></td>
					<td><?=$items['create_dt'];?></td>
					<td><?=$items['update_dt'];?></td>
					<td><a href="javascript:" onclick="javascript:deleteItem('<?=$items['idx'];?>')">삭제</a></td>
				</tr>
<?	endforeach ?>
			</table>
			<input type="submit" value="저장" />
		</fieldset>
	</form>
</div>
<div>
	<h2>활동내역별 지급 포인트 등록</h2>
</div>
<div>
	<form method="post" id="frm" action="/product/activitypoint/insert">
		<fieldset>
			<table width="100%" border="1" cellpadding="2" cellspacing="0">
				<tr>
					<td>활동ID</td>
					<td>활동내역</td>
					<td>지급포인트</td>
				</tr>
				<tr>
					<td><input type="text" name="actv_id" /></td>
					<td><input type="text" name="actv_caption" /></td>
					<td><input type="text" name="point" /></td>
				</tr>
			</table>
			<input type="submit" value="저장" />
		</fieldset>
	</form>	
</div>
<!--// Contents -->

<!-- Footer -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/footer.php'; ?>
<!--// Footer -->
</body>
</html>